Skip to content

Conversation

@Str8Razor
Copy link

@Str8Razor Str8Razor commented Dec 19, 2025

Vimgolf already filter out some vim window focus keys.
I am adding one more that is missing.
Without it the output is: "Here are your keystrokes: fd-6d fd-6d:q".
This will fix the client side only. And should be apply to server side as well.

@GamesByFelix
Copy link

Is there a workaround for this problem while this is not merged yet?

@Str8Razor
Copy link
Author

Str8Razor commented Jan 13, 2026

@GamesByFelix
This patch will just clean keystrokes string that vimgolf shows you after a challenge has been completed.
Until it will be fixed on server side, keystrokes string that is submitted to server should be filtered as well.
To do this you need to add these 2 lines to /usr/lib/ruby/gems/3.4.0/gems/vimgolf-0.5.0/lib/vimgolf/cli.rb

    def upload?(challenge)
+      VimGolf.ui.warn "Cleaning up input keys..."
+      %x( sed -i -e 's/\x80\xfd\x6d//g' #{challenge.log_path} )

      VimGolf.ui.warn "Uploading to VimGolf..."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants